MailPoet\Models\Newsletter B

Total Complexity 77
Dependencies 12
Dependents 32
Total lines 520
Lines of code 426
Logical lines of code 165
Comment lines 17
Methods 30
Properties 1

Methods 30

Method Rating Maintainability Complexity Lines of code
setStatus()
A
49 9 31
duplicate()
A
44 7 46
createOrUpdate()
A
49 7 33
save()
S
56 6 18
createNotificationHistory()
S
49 4 32
filterType()
S
51 4 30
filterWithOptions()
S
50 3 32
getArchives()
S
50 2 34
withDeletedSegments()
S
58 3 16
getMeta()
S
73 4 4
getBodyString()
S
66 3 9
filterStatus()
S
63 2 12
getWelcomeNotificationsForSegments()
S
57 1 20
findOneWithOptions()
S
68 2 7
withOptions()
S
65 2 9
withSendingQueue()
S
66 2 9
withSegments()
S
69 2 7
asArray()
S
68 2 7
getQueue()
S
80 1 3
queue()
S
78 1 3
delete()
S
72 1 5
restore()
S
70 1 6
trash()
S
70 1 6
options()
S
67 1 8
segmentRelations()
S
70 1 7
segments()
S
68 1 8
parent()
S
70 1 7
getByHash()
S
76 1 4
children()
S
70 1 7
__construct()
S
70 1 6